import { createApp } from 'vue'
import { createPinia } from 'pinia'; // 引入 Pinia
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from "./router/index.js";
import {importImage} from "./utils/loadImage.js";
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

let app=createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
const pinia = createPinia(); // 创建 Pinia 实例

app.use(pinia); // 使用 Pinia
app.use(router)
app.use(ElementPlus)
app.mixin(importImage)
app.mount('#app')